package SpringCloudBase.fegin;

import SpringCloudBase.vo.UserVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ClassName UserFegin
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/3/31 17:43
 */
@FeignClient(name = "PROVIDER-USER")
public interface UserFegin {

    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
    UserVO getUser(@PathVariable("id") Long id);
}
